/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Entidad;

import java.util.ArrayList;
import javax.persistence.*;

/**
 *
 * @author Andres
 */
@Entity
@Table(name="Peliculas")
public class Pelicula {
    @Id @Column(name="Codigo")
    private int id;
    private String Nombre;
    private String Director;
    private String Genero;
    private ArrayList<String> Actores;
        
    
    public Pelicula(){}
    public Pelicula(int id,String Nombre, String Genero,ArrayList<String> Actores){
        this.id=id;
        this.Director=Director;
        this.Genero=Genero;
        this.Actores=Actores;
        this.Nombre=Nombre;
    
    }
    
    public int findNombre(int id){
        return em.find(Pelicula.class,id);
    }
    
    
    
    
    
}
